package abstractions;

import java.rmi.*;
import java.util.LinkedList;

public interface ClientServices extends Remote {
	
	public boolean lockAtom(int serverId, int docId, AtomId aId, int userId) throws RemoteException;
	
	public boolean unlockAtom(int serverId, int docId, AtomId aId) throws RemoteException;
	
	public boolean addClientToDoc(int serverId, int docId, int userId) throws RemoteException;
	
	public boolean removeClientFromDoc(int serverId, int docId, int userId) throws  RemoteException;
	
	public boolean updateDoc(int serverId, int docId, LinkedList<CommandC> cmds) throws RemoteException;
	
	public void updateServerFreq(int serverId, int serverFreq) throws RemoteException;	
				
}
